(function () {
    var app = new Vue({
        el: "#app",
        data: function() {
            return {
                rootPath:''
            };
        },
        methods: {
           choseRoot: function () {
               var that = this;
               try {
                   var path = window.app.choseRootDirPath();
                   this.rootPath = path;
               }catch (e) {
                   that.$message(e.message);
               }

           }
        }
    });
})();